﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using Ccit.OA.MsAddrBook;
namespace Ccit.OA.AddrBook
{
    public interface IAddrBook
    {
        /// <summary>
        /// 获取个人通讯录列表信息
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        DataSet GetAddBookMes(string Query);
        /// <summary>
        /// 删除个人通讯录信息
        /// </summary>
        /// <param name="sRecid"></param>
        /// <returns></returns>
        string DoOperateBook(string sRecid);
        /// <summary>
        /// 保存个人通讯录信息
        /// </summary>
        /// <param name="ms"></param>
        /// <returns></returns>
        List<string> DoSaveAddBookMes(MsAddBooks ms);
        /// <summary>
        /// 获取编辑页面信息
        /// </summary>
        /// <param name="sRecId"></param>
        /// <returns></returns>
        MsAddBooks GetEditAddBookMes(string sRecId);
        /// <summary>
        /// 获取设置分组信息
        /// </summary>
        /// <returns></returns>
        List<MsAddBookDetail> GetAddBookGroupMes();
        /// <summary>
        /// 保存设置分组信息
        /// </summary>
        /// <param name="ms"></param>
        /// <returns></returns>
        string DoSaveGroupMes(MsAddBookDetail ms);
        /// <summary>
        /// 修改个人通讯录分组信息
        /// </summary>
        /// <param name="sRecId"></param>
        /// <returns></returns>
        string DaUpdateAddBookGroup(MsAddBooks ms);
        /// <summary>
        /// 删除分组信息
        /// </summary>
        /// <param name="sRecId"></param>
        /// <returns></returns>
        string DaOperateGroup(string sRecId);
        /// <summary>
        /// 获取导出Execl数据
        /// </summary>
        /// <param name="sRecId"></param>
        /// <returns></returns>
        List<MsAddBooks> GetAddBooksExcelMes(string sRecId);
        /// <summary>
        /// 保存excel导入的数据
        /// </summary>
        /// <param name="lstAddBooks"></param>
        /// <returns></returns>
        string SaveImportExcelMes(List<MsAddBooks> lstAddBooks);
    }
}
